package cn.kmsoft.spatialboot.common.object;

import cn.kmsoft.stgeometry.constant.SpatialRelType;
import cn.kmsoft.stgeometry.constant.GeometryType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author
 * @date 2019/7/16.
 */
@Data
@ApiModel(description = "统计查询对象")
public class StatQuery {
    @ApiModelProperty(required = true, notes = "统计表达式")
    private String statsField;

    @ApiModelProperty("分组字段")
    private String groupByField;

    @ApiModelProperty("筛选条件")
    private String where;

    @ApiModelProperty("空间范围")
    private String geometry;

    @ApiModelProperty("空间关系")
    private SpatialRelType spatialRel;

    @ApiModelProperty("空间范围类型")
    private GeometryType geometryType;

    @ApiModelProperty("wkid")
    private Integer wkid = 2332;

    public String getStatsField() {
        return statsField;
    }

    public void setStatsField(String statsField) {
        this.statsField = statsField;
    }

    public String getGroupByField() {
        return groupByField;
    }

    public void setGroupByField(String groupByField) {
        this.groupByField = groupByField;
    }

    public String getWhere() {
        return where;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    public String getGeometry() {
        return geometry;
    }

    public void setGeometry(String geometry) {
        this.geometry = geometry;
    }

    public SpatialRelType getSpatialRel() {
        return spatialRel;
    }

    public void setSpatialRel(SpatialRelType spatialRel) {
        this.spatialRel = spatialRel;
    }

    public GeometryType getGeometryType() {
        return geometryType;
    }

    public void setGeometryType(GeometryType geometryType) {
        this.geometryType = geometryType;
    }

    public Integer getWkid() {
        return wkid;
    }

    public void setWkid(Integer wkid) {
        this.wkid = wkid;
    }
}
